<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity(repositoryClass="App\Repository\ArtRepository")
 */
class Art
{
    /**
     * @ORM\Id()
     * @ORM\GeneratedValue()
     * @ORM\Column(type="integer")
     */
    private $id;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $category;

    /**
     * @ORM\Column(type="string", length=255)
     */
    private $title;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $pic;

    /**
     * @ORM\Column(type="text", nullable=true)
     */
    private $content;

    /**
     * @ORM\Column(type="string", length=32, nullable=true)
     */
    private $addtime;

    /**
     * @ORM\Column(type="string", length=32, nullable=true)
     */
    private $adddate;

    /**
     * @ORM\Column(type="string", length=32, nullable=true)
     */
    private $updatetime;

    /**
     * @ORM\Column(type="string", length=32, nullable=true)
     */
    private $updatedate;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $isHot;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $isTop;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $isIndex;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $scan;

    /**
     * @ORM\Column(type="array", nullable=true)
     */
    private $files;

    /**
     * @ORM\Column(type="string", length=32, nullable=true)
     */
    private $author;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $src;

    /**
     * @ORM\Column(type="array", nullable=true)
     */
    private $tags;

    /**
     * @ORM\Column(type="text", nullable=true)
     */
    private $intro;

    /**
     * @ORM\Column(type="string", length=10, nullable=true)
     */
    private $province;

    public function getId()
    {
        return $this->id;
    }

    public function getCategory(): ?int
    {
        return $this->category;
    }

    public function setCategory(?int $category): self
    {
        $this->category = $category;

        return $this;
    }

    public function getTitle(): ?string
    {
        return $this->title;
    }

    public function setTitle(string $title): self
    {
        $this->title = $title;

        return $this;
    }

    public function getPic(): ?string
    {
        return $this->pic;
    }

    public function setPic(?string $pic): self
    {
        $this->pic = $pic;

        return $this;
    }

    public function getContent(): ?string
    {
        return $this->content;
    }

    public function setContent(?string $content): self
    {
        $this->content = $content;

        return $this;
    }

    public function getAddtime(): ?string
    {
        return $this->addtime;
    }

    public function setAddtime(?string $addtime): self
    {
        $this->addtime = $addtime;

        return $this;
    }

    public function getAdddate(): ?string
    {
        return $this->adddate;
    }

    public function setAdddate(?string $adddate): self
    {
        $this->adddate = $adddate;

        return $this;
    }

    public function getUpdatetime(): ?string
    {
        return $this->updatetime;
    }

    public function setUpdatetime(?string $updatetime): self
    {
        $this->updatetime = $updatetime;

        return $this;
    }

    public function getUpdatedate(): ?string
    {
        return $this->updatedate;
    }

    public function setUpdatedate(?string $updatedate): self
    {
        $this->updatedate = $updatedate;

        return $this;
    }

    public function getIsHot(): ?int
    {
        return $this->isHot;
    }

    public function setIsHot(?int $isHot): self
    {
        $this->isHot = $isHot;

        return $this;
    }

    public function getIsTop(): ?int
    {
        return $this->isTop;
    }

    public function setIsTop(?int $isTop): self
    {
        $this->isTop = $isTop;

        return $this;
    }

    public function getIsIndex(): ?int
    {
        return $this->isIndex;
    }

    public function setIsIndex(?int $isIndex): self
    {
        $this->isIndex = $isIndex;

        return $this;
    }

    public function getScan(): ?int
    {
        return $this->scan;
    }

    public function setScan(?int $scan): self
    {
        $this->scan = $scan;

        return $this;
    }

    public function getFiles(): ?array
    {
        return $this->files;
    }

    public function setFiles(?array $files): self
    {
        $this->files = $files;

        return $this;
    }

    public function getAuthor(): ?string
    {
        return $this->author;
    }

    public function setAuthor(?string $author): self
    {
        $this->author = $author;

        return $this;
    }

    public function getSrc(): ?string
    {
        return $this->src;
    }

    public function setSrc(?string $src): self
    {
        $this->src = $src;

        return $this;
    }

    public function getTags(): ?array
    {
        return $this->tags;
    }

    public function setTags(?array $tags): self
    {
        $this->tags = $tags;

        return $this;
    }

    public function getIntro(): ?string
    {
        return $this->intro;
    }

    public function setIntro(?string $intro): self
    {
        $this->intro = $intro;

        return $this;
    }

    public function getProvince()
    {
        return $this->province;
    }

    public function setProvince($province): self
    {
        $this->province = $province;

        return $this;
    }
}
